package com.atg.atgchat.init.websocket.serivce;

import io.netty.channel.Channel;
import me.chanjar.weixin.common.error.WxErrorException;

/*
author: atg
time: 2025/1/13 13:42
desc: websocket服务
*/

public interface WebSocketService {
    // 建立连接
    void channelConnect(Channel channel);
    // 请求登录
    void handLoginRequest(Channel channel) throws WxErrorException;
    // 用户下线
    void offLine(Channel channel);

    void scanLoginSuccess(Integer eventKeyCode, Long id);

    void sendMessageWaitAuthorization(Integer eventKeyCode);
    //  避免重复刷新
    void authorize(Channel channel, String token);
}
